package com.shadow.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class ShadowServlet extends HttpServlet {
    /**
     * 用于请求接口 打印日志
     *
     * @param req
     * @param resp
     * @throws ServletException
     * @throws IOException
     */
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("get-----");
    }

    @Override
    public void init() throws ServletException {
        System.out.println("----- servlet init------");
    }
}
